﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;

namespace EcoSystem
{
    public class DictionaryItem : FullAuditedAggregateRoot<Guid>
    {
        /// <summary>
        /// 上级ID
        /// </summary>
        public Guid? ParentId { get; set; }

        /// <summary>
        /// 系统名称
        /// </summary>
        [MaxLength(128)]
        public string ModuleCode { get; set; }

        /// <summary>
        /// 字典编码
        /// </summary>
        [MaxLength(128)]
        public string Code { get; set; }
        /// <summary>
        /// 字典名称
        /// </summary>
        [MaxLength(128)]
        public string Name { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        [MaxLength(128)]
        public string Icon { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool Status { get; set; }

        /// <summary>
        /// 排序值
        /// </summary>
        public short SortIndex { get; set; }

        /// <summary>
        /// 字典描述
        /// </summary>
        [MaxLength(256)]
        public string Description { get; set; }

        /// <summary>
        /// 此类别下所有明细
        /// </summary>
        public List<DictionaryValue> Items { get; set; }
    }
}
